import os

# 常量

# 路径常量
PATH_WORKROOM = os.path.expanduser('~') + "/workroom/"
PATH_BASE = PATH_WORKROOM + "data/regular_check/"
PATH_REPORT = PATH_BASE + "report/"
PATH_TPL = PATH_BASE + "tpl/"
PATH_SCREENSHOT = PATH_BASE + "screenshot/"
FILE_BIN_CHROME_DRIVER = PATH_WORKROOM + "/bin/chromedriver"
# 前缀常量
PREFIX_BASE64_PNG = "data:image/png;base64,"
# uri常量
URI_BASE = "https://test.com/svr/"
URI_DOMAIN = ".test.com"

URI_DATA_K8S = {
    "uri1": "uri1",
    "uri2": "uri2",
}
URI_DATA_K8S = {
    "uri1": "uri1",
    "uri2": "uri2",
}
URI_ALIAS_DATA_K8S = "k8s"
URI_ALIAS_DATA_ECS = "ecs"

URI_MAP_ALIAS_DATA = {
    URI_ALIAS_DATA_K8S: URI_DATA_K8S,
    URI_ALIAS_DATA_ECS: URI_DATA_ECS,
}
SERVICE_MAP_DATA = {
    'app1': URI_ALIAS_DATA_ECS,
    'app2': URI_ALIAS_DATA_ECS,
    'app3': URI_ALIAS_DATA_K8S,
}

URI_COOKIE_NAME_ID = "sessionid"
URI_COOKIE_VALUE_ID = "abcdefg"
URI_COOKIE_NAME_VAN = "test_version"
URI_COOKIE_VALUE_VAN = "12344"

URI_ARG_ENV = "env"
URI_ARG_START = "s"
URI_ARG_END = "e"
URI_ARG_APPID = "id"

FORMAT_DATETIME = "%Y-%m-%d %H:%M"
FORMAT_DATE = "%Y-%m-%d"

ENV_PRD = "test"

TPL_NAME_REGULAR_CHECK = "bc_tpl.html"

SLEEP_NOM = 5
AUTHOR = "michael.lee"
